"use strict";
const path = require("path");

const webpack = require("webpack");

module.exports = {
  outputDir: 'secondClass',
  assetsDir:'static',
  publicPath:'/',
  
  devServer: {
    historyApiFallback: true,
    host: "0.0.0.0",
    port:8080,
    proxy: {
      "/api": {
        target: "http://127.0.0.1:3007",
        pathRewrite: {
          "^/api": "/api",
        },
      },
    },
  },
   configureWebpack: {
        plugins: [
          new webpack.ProvidePlugin({
            $: 'jquery',
            jQuery: 'jquery',
            'window.jQuery': 'jquery',
            Popper: ['popper.js', 'default']
           })
        ]
       },
};
